{extend name="common/base" }

{block name="content"}
<div class="am-g">
	<div class="am-u-sm-12">
		<form class="am-form ajax-form" method="post" action="{:module_url('edit', ['id' => $_id])}">

            {$widget->form('text', ['title' => '广告名称', 'name' => 'adver_name', 'value' => $_record['adver_name']])}

            {$widget->form('select', ['title' => '广告位置', 'name' => 'position', 'value' => $_record['position'], 'list' => $adverPosition ])}

            {$widget->form('image', ['title' => '广告图片', 'name' => 'src', 'value' => $_record['src'], 'width' => 600])}

            {$widget->form('text', ['title' => '链接地址', 'name' => 'link', 'value' => $_record['link']])}

            {$widget->form('radio', ['title' => '状态', 'name' => 'status', 'value' => $_record['status'], 'list' => $adverStatus])}

			{$widget->form('submit', ['title' => '用户操作'])}

		</form>
	</div>
</div>
{/block}

{block name="script"}
<script type="text/javascript">
	$(function(){
	
	});
</script>
{/block}